{__NOLAYOUT__}
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
    <link rel="stylesheet" type="text/css" href="/agent/css/common.css"/>
    <link rel="stylesheet" type="text/css" href="/agent/css/shenpi.css"/>
    <script type="text/javascript" src="/agent/js/jquery.1.9.1.js" ></script>
    <script type="text/javascript" src="/agent/js/rem.js" ></script>
    <script type="text/javascript" src="/agent/js/swiper.min.js"></script>
    <link rel="stylesheet" type="text/css" href="/agent/css/swiper-3.4.2.min.css" />
    <title>我审批的</title>
</head>
<script>
  $(function() {
    var winHeight = $(window).height();
    $(".mask").css("height", winHeight);
    $(".mask .container").css("margin-top", winHeight / 3);
    $(".tupian .swiper-slide").click(function(){
      $(".mask").show();
    });
    $(".cha").click(function(){
      $(".mask").hide();
      window.location.reload();
    });
  });
</script>
<body>
<div class="top">
    <img src="{$userinfo.avatar}"/>
    <span>{$agent.dep_text}</span>
    <span class="ing">{$order.status_text}</span>
</div>
<!--订单列表-->
<div class="order_list">
    <h2>
        <span>订货单号：{$order.nb}</span>
    </h2>
    {volist name="orderItem" id="vo"}
    <div class="order_list_goods">
        <dl>
            <dt>
                <img src="{$vo.preproductimg_text}">
            </dt>
            <dd class="name">
                <strong>{$vo.preproductname_text}</strong>

            </dd>
            <dd class="pice">￥{$vo.unit_price}<em>x{$vo.num}</em></dd>
        </dl>
    </div>
    {/volist}
</div>
<!--付款凭证-->
<div class="pay">

    <p>共{:count($orderItem)}件商品&nbsp;&nbsp;&nbsp;合计：<span style="color: #f3494c;">¥{$order.order_price}</span></p>
</div>
<!--收货地址-->
<div class="shou">
    <h2><img class="dizhi" src="/agent/img/address.png"/>&nbsp;收货地址</h2>
    <div class="name2">
        收货人：{$agent.warehouse.name} &nbsp;&nbsp;&nbsp;
        <a href="tel:{$agent.warehouse.tel}">{$agent.warehouse.tel}</a>
    </div>
    <div class="address">
        
        <p>收货地址：{$agent.warehouse.province_text}{$agent.warehouse.city_text}{$agent.warehouse.area_text}{$agent.warehouse.address}</p>
    </div>
</div>
<!--审批流程-->
<div class="liucheng">
    <h2>审批流程</h2>
    <ul>
        {volist name="$order.log" id="vo"}
        <li>
            <div class="left-border">
                <i class="second first"></i>
            </div>
            <div class="shen-left">
              <div class="shen-info">
                <img src="{$vo.avatar}"/> 
                <em class="agent-name">{$vo.username}</em>
                    <em class="agree" style="color: #2abf40;color: #f3494c; "><em style="color: #888;">·{$vo.action}</em></em>
              </div>
                {if $vo.content}
                    <p class="shen-beizhu">“{$vo.content}”</p>
                {/if}
                
            </div>
            <span>{:date('m/d  H:i',$vo['createtime'])}</span>
        </li>
        {/volist}
       
    </ul>
</div>
  <!--审批意见-->
  <form action="" method="post" name="form" id="forms">
      <input type="hidden" value="{$order.id}" name="orderID"> 
   
    <!--物流-->
    <ul class="wuliu">
      
        <li>物流方式
            <input id="receivingWay" type="text" name="row[receivingWay]" value="{$order->receivingWay}" placeholder="请输入物流费用" />
        </li>
        <li>运费承担
            <input id="freightFor" type="text" name="row[freightFor]" value="{$order->freightFor}" placeholder="运费承担" />
        </li>
         <li>到货时间
            <input id="forArrivalGoodsTime" type="text" name="row[forArrivalGoodsTime]" value="{$order->forArrivalGoodsTime}" placeholder="到货时间" />
        </li>
    </ul>
      <input id='submit_to_save' name='submit_to_save' value='' type='hidden'>
      <input  name='art' value='' type='hidden'><!--同意必须-->
      <div class="button1" style="position: inherit;">
          <div class="agree" style="height: 0.743rem;" id='nexbton' onclick='tj("ok")' >重新提交</div>
          <input type="hidden" name="wf_backflow" value="0">
       
      </div>
  </form>
<!--Swiper-->
<div class="swiper-container myswiper" id="origin-img">
    <div class="swiper-wrapper"></div>
    <div class="swiper-pagination"></div>
    <div class="upload"></div>
</div>
<script>
    //同意 驳回
    function tj(val) {
      $('#submit_to_save').val(val);
      $('#forms').submit();
    }
</script>
</body>
</html>
